import 'package:flutter/material.dart';

/// 姿态数据模型
/// 定义姿态检测相关的数据结构
/// 创建时间：2024-01-23

class Keypoint {
  final double x;
  final double y;
  final double confidence;

  Keypoint({
    required this.x,
    required this.y,
    this.confidence = 0.0,
  });

  Offset toOffset() => Offset(x, y);
}

class PoseData {
  final List<Keypoint> keypoints;
  final double score;

  PoseData({
    required this.keypoints,
    this.score = 0.0,
  });
}
